import Vue from 'vue'
import Vuex from 'vuex'
import * as actions from './actions'
import * as getters from './getters'
import homepage from './modules/homepage'
import user from './modules/user'
import goods from './modules/goods'
import cart from './modules/cart'
import order from './modules/order'
import money from './modules/money'
import member from './modules/member'
import address from './modules/address'
import pay from './modules/pay'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  actions,
  getters,
  modules: {
    homepage,
    user,
    goods,
    cart,
    order,
    money,
    member,
    address,
    pay
  },
  strict: debug,
})